package com.bookcity.enums;

/**
 * @Author: Trioutia
 * @Date: 2022/5/11 - 05 - 11 - 10:18
 * @Description: com.bookcity.common
 * @version: 1.0
 */
public enum BookType implements BaseEnum{      //  类型
/*
    全部、小说、文学、
    历史、传记、青春、
    励志、社科、心理、
    经济、管理、理财
*/
    All(0), fiction(1), literature(2),
    history(4), biography(8), youth(16),
    inspirational(32), socialScience(64), psychology(128),
    economy(256), management(512), financialManagement(1024);

    private int id;

    BookType(int id) {
        this.id = id;
    }

    @Override
    public int getCode() {
        return id;
    }

}

